<template>
    <div>
        <el-card>
            <el-form :inline="true" :model="formInline" ref="formRef" label-position="right"
                class="demo-form-inline flex flex-wrap gap-4">
                <el-form-item label="日期:" prop="appealTime" class="form-item">
                    <el-date-picker v-model="formInline.appealTime" type="datetimerange" format="YYYY-MM-DD "
                        date-format="YYYY/MM/DD " style="max-width: 32vw;" />
                </el-form-item>
                <el-form-item class="form-item">
                    <el-button type="primary" @click="onsubmint">查 询</el-button>
                    <el-button @click="reset">重置</el-button>
                </el-form-item>
            </el-form>
        </el-card>
        <el-card class="form-content">
            <div class="table_heard" style="display: flex;justify-content: space-between;">
                <div class="heard_left" style="display: inline-block;">
                    <span>数据明细</span>
                </div>
                <div class="heard_right" style="display: flex;justify-content: flex-end;">
                    <el-button type="primary" @click="onImportExcelClick">导出</el-button>
                </div>
            </div>
        </el-card>
    </div>
</template>

<script setup>
import { ref, computed, reactive } from 'vue'
const formInline = reactive({
    appealTime: ''
})
</script>

<style lang="scss" scoped>
.demo-form-inline {
    display: flex;
    flex-wrap: nowrap;
    .form-item {
        flex-grow: 1;
    }
}

.form-content {
    height: 75vh;
    margin-top: 1vh;
}
</style>
